<?php
require_once("lib/nusoap.php");


$text = $_GET['countyName'];
$parentId = $_GET['cityId'];

print "<h2>Simple Web Service</h2>";
print "<form action='client.php' method='GET'/>";
print "<input name='countyName' value='$text'/><br/>";
print "<input name='cityId' value='$parentId'/><br/>";
print "<input type='Submit' name='submit' value='search'/>";
print "</form>";

if($parentId != '' ){
	
	$wsdl="http://localhost/soap/server.php?wsdl";
	$client=new nusoap_client($wsdl);
	$param=array('countyName'=>"Ankara", 'parentId => 0'); 
	echo $client->call('search', $param);

}

?>